/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"icep/controller"

	"github.com/emicklei/go-restful"
)

func RegisterDataEvidenceWebService(ws *restful.WebService, controller *controller.IcepController) {
	// 查询数据存证列表——分页
	ws.Route(ws.GET("/icep/evidence/data/query").To(controller.GetDataEvidencePage))
	// 查询数据存证列表
	ws.Route(ws.GET("/icep/evidence/data/list").To(controller.GetDataEvidenceList))
	// 查询数据存证详情
	ws.Route(ws.GET("/icep/evidence/data/detail").To(controller.GetDataEvidenceInfo))
	// 创建数据存证
	ws.Route(ws.POST("/icep/evidence/data/create").To(controller.CreateDataEvidence))
	ws.Route(ws.POST("/icep/evidence/data/nokey/create").To(controller.CreateDataNokeyEvidence)) //非秘钥托管类
	//解密
	ws.Route(ws.POST("/icep/evidence/data/decrypt").To(controller.DecryptDataEvidence))
	//验签
	ws.Route(ws.POST("/icep/evidence/signature/check").To(controller.CheckDataEvidence))
}
